package sync

import "time"

type SyncConfigModel struct {
	Id                 int       `json:"id" gorm:"type:int(11) auto_increment; NOT NULL; primary_key"`
	TypeClassifyId     int       `json:"type_classify_id" gorm:"type:int(11); COMMENT:'类型分类'"`
	BusinessClassifyId int       `json:"business_classify_id" gorm:"type:int(11); COMMENT:'业务分类'"`
	StartId            int       `json:"start_id" gorm:"type:int(11); COMMENT:'开始ID'"`
	Number             int       `json:"number" gorm:"type:int(11); COMMENT:'同步数量'"`
	Column             string    `json:"column" gorm:"type:varchar(255); COMMENT:'同步栏目'"`
	Hour               string    `json:"hour" gorm:"type:varchar(255); COMMENT:'生成时间'"`
	HourFormat         int       `json:"hour_format" gorm:"type:int(11); COMMENT:'同步时间'"`
	CreatedAt          time.Time `json:"created_at" gorm:"type:timestamp"`
	UpdatedAt          time.Time `json:"updated_at" gorm:"type:timestamp"`
}

func (SyncConfigModel) TableName() string {
	return "sync_config"
}
